<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/*
|--------------------------------------------------------------------------
| File and Directory Modes
|--------------------------------------------------------------------------
|
| These prefs are used when checking and setting modes when working
| with the file system.  The defaults are fine on servers with proper
| security, but you may wish (or even need) to change the values in
| certain environments (Apache running a separate process for each
| user, PHP under CGI with Apache suEXEC, etc.).  Octal values should
| always be used to set the mode correctly.
|
*/
define('FILE_READ_MODE', 0644);
define('FILE_WRITE_MODE', 0666);
define('DIR_READ_MODE', 0755);
define('DIR_WRITE_MODE', 0777);

/*
|--------------------------------------------------------------------------
| File Stream Modes
|--------------------------------------------------------------------------
|
| These modes are used when working with fopen()/popen()
|
*/

define('FOPEN_READ',							'rb');
define('FOPEN_READ_WRITE',						'r+b');
define('FOPEN_WRITE_CREATE_DESTRUCTIVE',		'wb'); // truncates existing file data, use with care
define('FOPEN_READ_WRITE_CREATE_DESTRUCTIVE',	'w+b'); // truncates existing file data, use with care
define('FOPEN_WRITE_CREATE',					'ab');
define('FOPEN_READ_WRITE_CREATE',				'a+b');
define('FOPEN_WRITE_CREATE_STRICT',				'xb');
define('FOPEN_READ_WRITE_CREATE_STRICT',		'x+b');

define('NUMBER_RECORD_PER_PAGE', 10);
define('NUMBER_RECORD_PER_PRODUCT_PAGE', 10);
define('NUMBER_RECORD_PER_NEWS_PAGE', 10);
define('NUMBER_RECORD_PER_CATEGORY_PAGE', 10);

define('PRODUCTS_PAGE', 'products');
define('PRICES_PAGE', 'prices');
define('PRODUCT_IMAGE_PATH', './data/product/images/');
define('NEWS_IMAGE_PATH', './data/news/nimages/');
define('INTRODUTION_IMAGE_PATH', './data/images/introdution/');
define('CATEGORY_IMAGE_PATH', './data/images/category/');
define('TOUR_IMAGE_PATH', './data/images/tour/');
define('TOUR_VIDEO_PATH', './data/tour/video');
define('ARTICLE_IMAGE_PATH', './data/article/aimages');
define('PROVINCE_VIDEO_PATH', './data/province/pvideo');
define('PROVINCE_IMAGE_PATH', './data/province/pimages');
define('HOTEL_IMAGE_PATH', 'data/hotel/himages/');
define('SLIDER_IMAGE_PATH', './data/slide/');
define('SOFTWARE_PATH', 'data/software/');

define('ICON_PATH', './images/admin/tabs/');
define('ADV_PATH', './data/adv/');
define('TMP_PATH', './data/Images/Product/Tmp/');
define('VALID_CHARACTERS', "^a-zA-Z0-9_@,:;.-");


define('NOT_READ', 0);
define('READ', 1);
define('ANSWER', 2);

define('PRODUCT_IMAGE_EXT', '.jpg');
define('PRODUCT_EXTEND_NAME', '.jpg');

define('SKYPE', 'skype');
define('YAHOO', 'ymsgr');
define('MSN', 'msnim');
define('GTALK', 'gtalk');


define('TOUR_TYPE', '1');
define('CONSULTANT_TYPE', '2');
define('NEWS_TYPE', '3');
define('SERVICE_TYPE', '4');
define('PRODUCT_TYPE', '5');
define('ABOUT_TYPE', '6');
define('ARTICLE_TYPE', '7');
define('PROVINCE_TYPE', '8');
define('HOTEL_TYPE', '9');

define('IMAGE_TYPE', '1');
define('VIDEO_TYPE', '2');

define('WAITING_BOOKING', '1');
define('ACCEPT_BOOKING', '2');
define('CANCEL_BOOKING', '3');

define('LINK_FILE', '1');
define('LINK_URL', '2');

define('NEW_ORDER', '1');
define('NEW', '1');
define('PAID', '2');
define('INPROGRESS', '3');
define('COMPLETE', '4');
define('CANCEL', '5');


/* End of file constants.php */
/* Location: ./application/config/constants.php */